{if $pass}
{template 'header'}
<script type="text/javascript">
var module_id= {$moduleid},item_id={$itemid},content_id='content',img_max_width={$MOD[max_width]};
if(isIE) {
	document.write('<style type="text/css">');
	document.write("#cursor_a {cursor:url('{AJ_SKIN}image/prev.cur'),default;}");
	document.write("#cursor_b {cursor:url('{AJ_SKIN}image/next.cur'),default;}");
	document.write('</style>');
}
</script>
<div class="m">
<a name="p"></a>
<div class="nav">当前位置: <a href="{$MODULE[1][linkurl]}">首页</a> &raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a> &raquo; {cat_pos($CAT, ' &raquo; ')} &raquo;</div>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" class="photo_l">
<input id="aijiacms_previous" type="hidden" value="{$prev_photo}#p">
<input id="aijiacms_next" type="hidden" value="{$next_photo}#p">
<div class="photo_info">
<div class="photo_info_r"><span class="count_a">{$page}</span> <span class="count_b">/ {$items}</span></div>
<div>
<h1 class="title" id="title">{$title}</h1>
日期：<span class="px11">{$adddate}</span>&nbsp;&nbsp;&nbsp;
点击：<span id="hits" class="px11">{$hits}</span>&nbsp;&nbsp;&nbsp;
<span onclick="View(Dd('aijiacms_photo').src);" class="c_p">查看原图</span>&nbsp;&nbsp;&nbsp;
<span onclick="Go('{$MOD[linkurl]}{rewrite('view.php?itemid='.$itemid)}#p');" class="c_p">全部展开</span>
</div>
</div>
<div class="b10"></div>
<div id="photo">{template 'content', 'chip'}</div>
{if $P[introduce]}<div class="photo_intro">{nl2br($P[introduce])}</div>{/if}
<div class="b10"></div>
</td>
<td valign="top" class="photo_r">
<br/><br/><br/>
<a href="{$prev_photo}#p"><img src="{AJ_SKIN}image/photo_prev.gif" title="上一张"/></a>
<br/><br/>
<div id="side">
{if $user_status == 3}
{php $action = 'side';}
{template 'content', 'chip'}
{php $action = '';}
{else}
<div style="height:200px;">&nbsp;</div>
{/if}
</div>
<br/><br/>
<a href="{$next_photo}#p"><img src="{AJ_SKIN}image/photo_next.gif" title="下一张"/></a>
<br/><br/>
</td>
</tr>
</table>
</div>

<div class="m">
<div class="b10">&nbsp;</div>
<div class="box_head">
	<div><strong>{$MOD[name]}说明</strong></div>
</div>
<div class="box_body" style="padding:0;">
{if $CP}{template 'property', 'chip'}{/if}
<div class="content c_b" id="content">{$content}</div>
<div class="left_head"><span class="f_r"><a href="{$MOD[linkurl]}{$CAT[linkurl]}">更多&raquo;</a></span>推荐{$MOD[name]}</div>
<div class="b5">&nbsp;</div>
<div class="thumb"><!--{tag("moduleid=$moduleid&condition=status=3 and open=3 and level=1 and items>0&catid=$catid&order=".$MOD[order]."&length=20&width=120&height=90&pagesize=6&cols=6&template=list-photo")}--></div>
{template 'comment', 'chip'}
</div>
</div>
<div class="m">
	<br/>
	<center>
	[ <a href="{$MOD[linkurl]}search.php" rel="nofollow">{$MOD[name]}搜索</a> ]&nbsp;
	[ <a href="javascript:SendFav();">加入收藏</a> ]&nbsp;
	[ <a href="javascript:SendPage();">告诉好友</a> ]&nbsp;
	[ <a href="javascript:Print();">打印本文</a> ]&nbsp;
	[ <a href="javascript:window.close()">关闭窗口</a> ]
	</center>
	<br/>
</div>
{if $content}<script type="text/javascript" src="{AJ_STATIC}file/script/content.js"></script>{/if}
<script type="text/javascript">
window.onload = function() { try{Dd('cursor_a').style.height = Dd('cursor_b').style.height =  Dd('aijiacms_photo').height+'px';} catch(e) {} }
</script>
{template 'footer'}
{else}
<meta http-equiv="refresh" content="0;url={$MOD[linkurl]}private.php?itemid={$itemid}&page={$page}">
{/if}